projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04c520c
)
AMD IOMMU v2: minor cleanup
author
Jan Beulich
<jbeulich@suse.com>
Fri, 2 Dec 2011 13:22:47 +0000
(14:22 +0100)
committer
Jan Beulich
<jbeulich@suse.com>
Fri, 2 Dec 2011 13:22:47 +0000
(14:22 +0100)
Despite this array living in an __init function, having such be an
automatic variable is rather inefficient in terms of generated code.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Wei Wang2 <wei.wang2@amd.com>
xen/drivers/passthrough/amd/iommu_detect.c
patch
|
blob
|
history
diff --git
a/xen/drivers/passthrough/amd/iommu_detect.c
b/xen/drivers/passthrough/amd/iommu_detect.c
index 0bf933b1103dc05a48332b5140dec9d34bba53dc..a57af7ba9638fa69a0d3f3f59a0a48fef56acbea 100644
(file)
--- a/
xen/drivers/passthrough/amd/iommu_detect.c
+++ b/
xen/drivers/passthrough/amd/iommu_detect.c
@@
-66,7
+66,7
@@
void __init get_iommu_features(struct amd_iommu *iommu)
{
u32 low, high;
int i = 0 ;
-
char *
feature_str[] = {
+
static const char *__initdata
feature_str[] = {
"- Prefetch Pages Command",
"- Peripheral Page Service Request",
"- X2APIC Supported",